package cn.dinghu.pro.controller;


import cn.dinghu.pro.common.ResultData;
import cn.dinghu.pro.service.IFuwuService;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dinghu
 * @since 2025-10-14
 */
@RestController
@RequestMapping("/fuwu")
@Api(tags = "服务类型管理")
@ApiSupport(author = "熙神" )
public class FuwuController {
    @Autowired
    private IFuwuService fuwuService;

    @GetMapping("list")
    @ApiOperation(value = "查询所有服务类型")
    public ResultData list(){
        return fuwuService.list().size()>0?ResultData.ok(fuwuService.list()):ResultData.noData();
    }

}
